tmpStr = input('请输入字符串：')
zimuNum=0
shuziNum=0
konggeNum=0
qitaNum=0
for i in tmpStr:
    if i.isalpha():
        zimuNum +=1
    elif i.isnumeric():
        shuziNum +=1
    elif i.isspace():
        konggeNum +=1
    else:
        qitaNum +=1
print('字母=%d'%zimuNum)
print('数字=%d'%shuziNum)
print('空格=%d'%konggeNum)
print('其他=%d'%qitaNum)